from django.contrib import admin
from module.models import Module, Version
from adminsortable.admin import SortableAdminMixin

# Register your models here.

class VersionInline(admin.TabularInline):
    model = Version
    
class ModuleAdmin(SortableAdminMixin, admin.ModelAdmin):
    inlines = [
        VersionInline,
    ]
    
admin.site.register(Module, ModuleAdmin)

admin.site.register(Version)
